package com.hiultra.common.constant;

/**
 * 业务常量信息
 *
 * @author ls
 */
public class BusinessConstants {

    /**
     * 档案鉴定状态-正常
     */
    public static final Integer APPRAISAL_NORMAL = 0;

    /*
     * 单据类型-借阅
     * */
    public static final String BORRROW_TYPE = "01";

    /*
     * 单据类型-鉴定
     * */
    public static final String APPRAISAL_TYPE = "02";
    /*
     * 单据类型-销毁
     * */
    public static final String DESTROY_TYPE = "03";

    /*
     * 位置类型-智能柜
     * */
    public static final String LOCATION_TYPE_CABINET = "01";

    /*
     * 位置类型-密集架
     * */
    public static final String LOCATION_TYPE_SHELVES = "02";


    /**
     * 档案柜类型01列02节03层
     */
    public static final String CABINET_TYPE_COL = "01";
    public static final String CABINET_TYPE_SEC = "02";
    public static final String CABINET_TYPE_LAY = "03";

    /**
     * 推送状态 （01 已推送 02 未推送）
     */
    public static final String END_PUSHSTATUS = "01";
    public static final String PUSHSTATUS = "02";

    /*库位相关***********************************/
    /**
     * 开柜方向01向左02向右03左右
     */
    public static final String OPEN_DIRECTION_LEFT = "left";
    public static final String OPEN_DIRECTION_RIGHT = "right";
    /******************************************/

    /*状态00无操作11开架22合架33开架完成44合架完成55禁止状态66解禁77停止完成1A恢复出厂FF:CAN通讯异常*/
    public static final String SHELVES_STATUS_NO = "00";
    public static final String SHELVES_STATUS_OPEN = "11";
    public static final String SHELVES_STATUS_CLOSE = "22";
    public static final String SHELVES_STATUS_OPEN_FINISH = "33";
    public static final String SHELVES_STATUS_CLOSE_FINISH = "44";
    public static final String SHELVES_STATUS_PROHIBIT = "55";
    public static final String SHELVES_STATUS_OPEN_PROHIBIT = "66";
    public static final String SHELVES_STATUS_STOP_FINISH = "77";
    public static final String SHELVES_STATUS_FACTORY = "FF";
    public static final String SHELVES_STATUS_ERR = "CAN";

    /*是否固定列01是02否*/
    public static final String IS_FIXED_COL = "01";
    public static final String IS_NOT_FIXED_COL = "02";

    /*是否允许打开01是02否*/
    public static final String IS_OPEN = "01";
    public static final String IS_NOT_OPEN = "02";
    /******************************************/

    /*库位下发相关***********************************/
    /**
     * 档案室操作类01.新增 02.变更 03.开启 04.关闭
     */
    public static final String LOCATION_OPERTYPE_ADD = "01";
    public static final String LOCATION_OPERTYP_CHANGE = "02";
    public static final String LOCATION_OPERTYP_OPEN = "03";
    public static final String LOCATION_OPERTYP_CLOSE = "04";

    /******************************************/

    /*入库相关***********************************/
    /**
     * 入库状态
     */
    public static final String IN_STATUS_ING = "02";
    public static final String IN_STATUS_END = "03";

    /*入库结果 1成功 2失败*/
    public static final String WAREHOUSING_RESULT_SUCCESS = "1";
    public static final String WAREHOUSING_RESULT_FAIL = "2";
    /******************************************/

    /*档案盒相关***********************************/


    /*
     * operType	操作类型01.借阅 02.归还
     *
     */
    public static final String OPERTYPE_BORROW = "01";
    public static final String OPERTYPE_GIVE_BACK = "02";

    /**
     * 借阅状态1已借阅 2未借阅 3已归还
     */
    public static final String GIVE_BACK_STATUS = "1";
    public static final String PRE_GIVE_BACK_STATUS = "2";
    public static final String GIVE_BACK_STATUS_RETURN = "3";

    /*档案盒在库状态1是2否*/
    public static final String IN_STOCK_STATUS = "1";
    public static final String PRE_IN_STOCK_STATUS = "2";

    /*档案盒是否写卡 0-否 1-是*/
    public static final Integer PRE_IS_WRITE_CARD = 0;
    public static final Integer IS_WRITE_CARD = 1;

    /*删除标识 0-否 1-是*/
    public static final String DELFLAG = "0";
    public static final String IS_DELFLAG = "1";
    /******************************************/

    /**
     * 在库状态1是 2否
     */
    public static final String Library_Status = "1";
    public static final String END_Library_Status = "2";

    /*档案盒状态01待选位02已选位03已上架04已销户*/
    public static final String BOX_STAT_PRE = "01";
    public static final String BOX_STAT = "02";
    public static final String BOX_STAT_ON = "03";
    public static final String BOX_STAT_DES = "04";
    /*保管期限01.永久 02.10年 03.30年*/
    public static final String BOX_PERIOD_FOREVER = "01";
    public static final String BOX_PERIOD_TEN = "02";
    public static final String BOX_PERIOD_THIRTY = "03";
    /*保密级别01公开 02商密*/
    public static final String BOX_SECRET_PUBLIC = "01";
    public static final String BOX_SECRET_SECRET = "02";


    /*销毁任务状态表相关***********************************/
    /**
     * 销毁状态 01.销毁 02.留存 03.待销毁
     */
    public static final String END_DES_STATUS = "01";
    public static final String RETAIN = "02";
    public static final String DES_STATUS = "03";
    /**
     * 详情销毁状态1.已销毁 2未销毁
     */
    public static final String DES_DETAILE_STATUS = "2";
    public static final String END_DETAILE_DES_STATUS = "1";
    /******************************************/

    /*转存任务状态表相关***********************************/
    /**
     * 出入库状态0待出库02待入库
     */

    public static final String UPLOADSTATUSOUT = "01";
    public static final String UPLOADSTATUSIN = "02";

    /*
    * 转存状态01.已出库 02.已入库03待出库04待入库
    * */
    public static final String TRANSFERSTATUSOUT = "01";
    public static final String TRANSFERSTATUSIN = "02";
    public static final String PRETRANSFERSTATUSOUT = "03";
    public static final String PRETRANSFERSTATUSIN = "04";
    /**
     * 上报类型1出库 入库
     */
    public static final String TRANSFERREPORTTYPE = "1";
    public static final String TRANSFERREPORTTYPERETURN = "2";
    /******************************************/

    /*档案盒状态表相关***********************************/
    /*档案盒状态(1.档案入库、2.档案借阅、3.借阅归还、4.档案销毁、5.档案转出、6.档案转入、7.档案盒移位、8.档案盘点)*/
    public static final String ARC_STOCK = "1";
    public static final String ARC_BORROW = "2";
    public static final String ARC_RETURN = "3";
    public static final String ARC_DES = "4";
    public static final String ARC_OUT = "5";
    public static final String ARC_IN = "6";
    public static final String BOX_MOVE = "7";
    public static final String ARCHIVE_STOCKING = "8";
    /******************************************/


    /*借阅任务表相关***********************************/
    /**
     * 借阅状态1已借阅 2已归还3待借阅
     */
    public static final String BORROW_GIVE_BACK_STATUS = "1";
    public static final String RETURN_BORROW_GIVE_BACK_STATUS = "2";
    public static final String PRE_BORROW_GIVE_BACK_STATUS = "3";

    /**
     * 借阅详情状态1已借阅 2未借阅 3已归还
     */
    public static final String BORROW_DETAIL_GIVE_BACK_STATUS = "1";
    public static final String BORROW_DETAIL_PRE_GIVE_BACK_STATUS = "2";
    public static final String BORROW_DETAIL_GIVE_BACK_STATUS_RETURN = "3";

    /**
     * 上报类型1借阅 2归还
     */
    public static final String REPORTTYPE = "1";
    public static final String REPORTTYPERETURN = "2";
    /******************************************/
    /*档案盒移位任务表相关***********************************/
    /**
     * 移位状态01待移位02移位完成
     */
    public static final String BOX_MOVE_STATUS = "01";
    public static final String END_BOX_MOVE_STATUS = "02";
    /**
     * 执行状态 1成功 2失败
     */
    public static final String STATUS_SUCESS = "1";
    public static final String STATUS_FAIL = "2";
    /******************************************/


    /*档案室任务下发报文接口编码*/
    //库位信息下发接口
    public static final String HOUSE_LOCATION_ISSUED_NO = "D0001";
    //档案盘点任务下发接口
    public static final String ARCHIVE_STOCKTAKING_TASK_ISSUED_NO = "D0002";
    //档案盘点任务上送接口
    public static final String ARCHIVE_STOCKTAKING_TASK_REPORT_NO = "D0003";
    //档案转存任务下发接口
    public static final String ARCHIVE_UPLOAD_TASK_ISSUED_NO = "D0004";
    //档案转存任务上送接口
    public static final String ARCHIVE_UPLOAD_TASK_TASK_REPORT_NO = "D0005";
    //档案借阅任务下发接口
    public static final String ARCHIVE_BORROW_TASK_ISSUED_NO = "D0006";
    //档案入库任务下发接口
    public static final String ARCHIVE_STORAGE_TASK_ISSUED_NO = "D0007";
    //档案销毁任务下发接口
    public static final String ARCHIVE_DES_TASK_ISSUED_NO = "D0008";
    //盒间档案移位任务下发接口
    public static final String ARCHIVE_BOXINNER_MOVE_TASK_ISSUED_NO = "D0009";
    //档案盒移位任务下发接口
    public static final String ARCHIVE_BOX_MOVE_TASK_ISSUED_NO = "D0010";
    //新增档案盒接口
    public static final String NEW_ADD_ARCHIVE_BOX = "D0011";
    //新增档案袋接口
    public static final String NEW_ADD_ARCHIVE_BAG = "D0012";
    //档案室环境预警信息上报接口
    public static final String ARCHIVE_ROOM_ALARM_REPORT_NO = "D0013";
    //档案室档案盒状态上报接口
    public static final String ARCHIVE_BOX_STATUS_REPORT_NO = "D0014";
    //档案室刷脸记录上报接口
    public static final String ARCHIVE_ROOM_FACE_RECORDS_REPORT_NO = "D0015";
    //非法携带档案记录上报接口
    public static final String ARCHIVE_BOX_ILLEGAL_RECORDS_REPORT_NO = "D0016";


    /*盘点任务相关***********************************/
    /*盘点状态（ 02-待盘点中03-盘点完成）*/
    public static final String PRE_INVENTORY_ORDER_STATUS = "02";
    public static final String END_INVENTORY_ORDER_STATUS = "03";
    /*是否新增盘盈盒1是 2否*/
    public static final String ADD_STATUS = "02";
    public static final String NO_ADD_STATUS = "01";
    /*盘点结果 02.盘亏 03.盘平*/
    public static final String INVENTORY_RESULT_LOSS = "02";
    public static final String INVENTORY_RESULT_EQUAL = "03";

    /*错位状态 01错位 02已归位*/
    public static final String MISS_STATUS = "01";
    public static final String NO_MISS_STATUS = "02";

    /*借阅标志1是 2否*/
    public static final String borrow_status = "1";
    public static final String no_borrow_status = "2";
    /******************************************/


}
